/**
 * 
 */
package com.yst.metho.web.application.team;

import java.util.Collection;

import nextapp.echo2.app.list.AbstractListModel;
import nextapp.echo2.app.list.ListModel;

/**
 * @author yannick
 * 
 */
public class TeamListModel extends AbstractListModel implements ListModel
{
	private Object[] mTeams;

	public TeamListModel(Collection teams)
	{
		mTeams = teams.toArray();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see nextapp.echo2.app.list.ListModel#get(int)
	 */
	public Object get(int arg0)
	{
		return mTeams[arg0];
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see nextapp.echo2.app.list.ListModel#size()
	 */
	public int size()
	{
		return mTeams.length;
	}

}
